package com.gaohe.controller;

import com.gaohe.common.Result;
import com.gaohe.service.StadiumService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/stadium")
public class StadiumController {
    @Autowired
    private StadiumService stadiumService;

    @GetMapping("/getDefaultStadium")
    public Result getDefaultStadiumByShopkeeperId(Long shopkeeperId){
        return stadiumService.getDefaultStadiumByShopkeeperId(shopkeeperId);
    }
}
